using System;

namespace HZY.Models
{
	using HZY.Models.Enums;
	using System.ComponentModel.DataAnnotations;
	using System.ComponentModel.DataAnnotations.Schema;

	[Table(nameof(BankAccount))]
	public class BankAccount
	{
		[Key]
		public Guid BankAccount_ID { get; set; } = Guid.Empty;
		/// <summary>
		/// 银行账户 
		/// </summary>
		[Required(ErrorMessage = "银行账户不能为空!")]
		public string BankAccount_Code { get; set; }
		/// <summary>
		/// 开户行 
		/// </summary>
		[Required(ErrorMessage = "开户行不能为空!")]
		public string BankAccount_Name { get; set; }
		/// <summary>
		/// 客户
		/// </summary>
		[Required(ErrorMessage = "客户不能为空!")]
		public Guid BankAccount_CustomerID { get; set; } 
		/// <summary>
		/// 创建时间
		/// </summary>
		[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
		public DateTime? BankAccount_CreateTime { get; set; }
		/// <summary>
		/// 是否禁用
		/// </summary>
		public ERole_IsDelete BankAccount_Disable { get; set; } = ERole_IsDelete.否;
		/// <summary>
		/// 是否删除 
		/// </summary>
		public ERole_IsDelete BankAccount_IsDelete { get; set; } = ERole_IsDelete.否;
		///<summary>
		/// 备注 
		/// </summary>
		public string BankAccount_Remarks { get; set; }

	}
}